.class Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;
.super Lcom/burstly/lib/network/request/DefaultRequestCallback;
.source "TrackRequestSender.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/TrackRequestSender;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "ShowComponentRequestCallback"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/network/request/DefaultRequestCallback",
        "<",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field private final mComponent:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/burstly/lib/component/AdaptorController;",
            ">;"
        }
    .end annotation
.end field

.field private final mLogTag:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/AdaptorController;Ljava/lang/String;)V
    .locals 1
    .parameter "component"
    .parameter "logTag"

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/burstly/lib/network/request/DefaultRequestCallback;-><init>()V

    .line 55
    iput-object p2, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mLogTag:Ljava/lang/String;

    .line 56
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mComponent:Ljava/lang/ref/Reference;

    .line 57
    return-void
.end method


# virtual methods
.method public bridge synthetic onFailUi(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 36
    check-cast p1, Ljava/lang/String;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->onFailUi(Ljava/lang/String;)V

    return-void
.end method

.method public onFailUi(Ljava/lang/String;)V
    .locals 4
    .parameter "param"

    .prologue
    .line 61
    invoke-static {}, Lcom/burstly/lib/component/TrackRequestSender;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mLogTag:Ljava/lang/String;

    const-string v2, "Error tracking show. Track result is null"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 62
    return-void
.end method

.method public bridge synthetic onSuccessUi(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 36
    check-cast p1, Ljava/lang/String;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->onSuccessUi(Ljava/lang/String;)V

    return-void
.end method

.method public onSuccessUi(Ljava/lang/String;)V
    .locals 6
    .parameter "param"

    .prologue
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 66
    iget-object v1, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mComponent:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/AdaptorController;

    .line 67
    .local v0, comp:Lcom/burstly/lib/component/AdaptorController;
    if-eqz v0, :cond_0

    .line 68
    invoke-static {p1}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 69
    invoke-static {}, Lcom/burstly/lib/component/TrackRequestSender;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mLogTag:Ljava/lang/String;

    const-string v3, "Showing advertise successfully tracked on server. Track result: {0}"

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 74
    :cond_0
    :goto_0
    return-void

    .line 71
    :cond_1
    invoke-static {}, Lcom/burstly/lib/component/TrackRequestSender;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/TrackRequestSender$ShowComponentRequestCallback;->mLogTag:Ljava/lang/String;

    const-string v3, "Showing advertise wasn\'t tracked on server. Track result: {0}"

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method
